package c.w.utils;

public class RegistCheck {

	public boolean doCheck(String userPassword){
		
		if (userPassword.equals("") || userPassword == null){
			return false;
		}
		if(!this.CheckNum(userPassword)){
			return false;
		}
		return true;
	}
	public boolean CheckNum(String userPassword){
		
		if(userPassword.length() != 11){
			return false;
		}
		String[] numCheck = {"137","136","187","152","150","158","183","151","139","159","147",
				"138","182","157","135","188","134","186","131","130","132","189"};
		
		String password = userPassword.substring(0,3);
		for(int i = 0; i < numCheck.length ;i++){
			if(password.equals(numCheck[i])){
			
				return true;
			}
		}
		return false;
	}
}
